<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>MKTB15</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/IDEA.css" type=text/css rel=stylesheet>
<link rel="stylesheet" href="../css/validationEngine.jquery.css"
	type="text/css" />
<SCRIPT language=javascript src="../js/ajax.js" type=text/javascript></SCRIPT>
<script src="../js/jquery-1.6.min.js" type="text/javascript"></script>
<script src="../js/languages/jquery.validationEngine-zh_CN.js"
	type="text/javascript" charset="utf-8"></script>
<script src="../js/jquery.validationEngine.js" type="text/javascript"
	charset="utf-8"></script>
<script type="text/javascript">
 function checkCompanyname(obj)
    {
    	if(obj.value!="")
    	{
    		var url = "../company/checkCompanyName.html?companyname="+encodeURIComponent(encodeURIComponent(obj.value));
    		sendRequest1(url);
    	}
    }
  //发送请求函数
	function sendRequest1(url) {
		createXMLHttpRequest();
		XMLHttpReq.open("GET", url, true);
		XMLHttpReq.onreadystatechange = processResponse1;//指定响应函数
		XMLHttpReq.send(null);  // 发送请求
	}
	// 处理返回信息函数
     function processResponse1() {
	    if (XMLHttpReq.readyState == 4) 
	    {

	        var isExist = XMLHttpReq.responseText;
	        if(isExist!="0")
	        {
	        	document.getElementById("errMsg").innerHTML="名称已存在";
	        	document.getElementById("isExist").value=isExist;
	        }
	        else
	        {
	        	document.getElementById("errMsg").innerHTML="";
	        	document.getElementById("isExist").value=isExist;
	        }
        }
    }
    jQuery(document).ready(function() {
		jQuery("#myform").validationEngine({
			autoHidePrompt : true
		});
	});
</script>
<META content="MSHTML 6.00.2900.3243" name=GENERATOR>
</HEAD>
<BODY>
	<form id="myform" method="POST"
		action="../company/addCompanyInfo.html">
		<TABLE width="100%" height="100%" border=0 cellPadding=0 cellSpacing=0>
			<TBODY>
				<TR>
					<TD height="100%" bgcolor="#FFFFFF" class=right_bg>
						<table width="100%" height="5" border="0" cellpadding="0"
							cellspacing="0">
							<tr>
								<td></td>
							</tr>
						</table>
						<table width="100%" border="0" align="center" cellpadding="0"
							cellspacing="0">
							<tr>
								<td width="20">&nbsp;</td>
								<td class="text_12_title">当前位置: <a href="#" class="blue_1">首页</a>&gt;
									<a href="#">企业信息管理</a> &gt; <a
									href="<%=request.getContextPath()%>/company/queryCompanyList.html">企业信息维护</a>
									&gt; 增加企业信息</td>
							</tr>
						</table>
						<table width="100%" height="10" border="0" cellpadding="0"
							cellspacing="0">
							<tr>
								<td></td>
							</tr>
						</table>
						<table width="98%" border="0" cellpadding="0" cellspacing="0"
							background="../images/bg_body_title.jpg" class="list_border1">
							<tr>
								<td width="10">&nbsp;</td>
								<td>
									<table border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td></td>
											<td valign="bottom" class="text_12_border">增加企业信息</td>
											<td></td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
						<table width="98%" border="0" cellpadding="0" cellspacing="0"
							class="list_border2">
							<tr>
								<td align="center" valign="top">
									<table width="98%" height="10" border="0" cellpadding="0"
										cellspacing="0">
										<tr>
											<td></td>
										</tr>
									</table>
									<jsp:include page="editBody.jsp"></jsp:include>
									<table width="98%" height="42" border="0" cellpadding="0"
										cellspacing="0">
										<tr>
											<td width="40%" align="center"><input name="Submit2"
												type="submit" class="button_normal" value="完  成">
												&nbsp;&nbsp; <input name="Submit3" type="button"
												class="button_normal" value="返  回"
												onclick="window.location.href='../company/queryCompanyList.html'">
											</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
						<table width="98%" height="5" border="0" cellpadding="0"
							cellspacing="0">
							<tr>
								<td></td>
							</tr>
						</table>
					</TD>
				</TR>
			</TBODY>
		</TABLE>
	</FORM>
</BODY>
</HTML>
